package com.exam.itempool.action;

import com.exam.base.action.BaseAction;
import com.exam.itempool.model.Questiontype;
import com.exam.itempool.service.QuestionTypeService;
/**
 * @see  实现的题形的操作.
 * @date 2011-01-07
 * @author dlxu
 */
public class QuestionTypeAction extends BaseAction
{
	private  Questiontype  questiontype;
	private  QuestionTypeService questionTypeService;
	
	private  String succString = "SUCCESS";
	
	public  String  questionTypeAdd(){
		System.out.println("this.questionTypeService="+this.questionTypeService);
		System.out.println(this.questiontype.getName());
		this.questionTypeService.save(this.questiontype);
		return SUCCESS;
	}

	public void setQuestiontype(Questiontype questiontype)
	{
		this.questiontype = questiontype;
	}

	public void setQuestionTypeService(QuestionTypeService questionTypeService)
	{
		this.questionTypeService = questionTypeService;
	}

	public String getSuccString()
	{
		return succString;
	}

	public void setSuccString(String succString)
	{
		this.succString = succString;
	}
	
}
